package com.stream.repository;

import com.stream.model.entity.SysUserEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by yebaokang on 2017/5/11.
 */
public interface SysUserRepository extends BaseRepository<SysUserEntity> {

    /**
     * 查询用户所有权限
     * @param userId
     * @return
     */
    List<String> queryAllPerms(Long userId);

    /**
     * 查询用户所有菜单ID
     * @param userId
     * @return
     */
    List<Long> queryAllMenuId(Long userId);

    /**
     * 根据用户名，查询系统用户
     * @param userName
     * @return
     */
    SysUserEntity queryByUserName(String userName);

    /**
     * 修改系统用户密码
     * @param map
     * @return
     */
    int updatePassWord(Map<String, Object> map);
}
